package kr.hkit.summary_java.erp.dto;

/**
 * 프로그램 설명
 * 
 * @Project : Summary_java
 * @package : kr.hkit.summary_java.erp.dto
 * @FileName : CodeTitle.java
 * @Date : 2014. 11. 3.
 * @version : 1.0.0
 * @author : SeongHyun Moon
 * @Comment : 직책
 * @History : 생성
 * 
 */
public class CodeTitle {
	/**
	 * titleNo 직책번호 titleName 직책명
	 */
	private int titleNo;
	private String titleName;

	/**
	 * @param titleNo                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
	 *            직책번호
	 * @param titleName
	 *            직책명
	 */
	public CodeTitle() {

	}

	public CodeTitle(int titleNo, String titleName) {
		super();
		this.titleNo = titleNo;
		this.titleName = titleName;
	}

	public int getTitleNo() {
		return titleNo;
	}

	public void setTitleNo(int titleNo) {
		this.titleNo = titleNo;
	}

	public String getTitleName() {
		return titleName;
	}

	public void setTitleName(String titleName) {
		this.titleName = titleName;
	}

	@Override
	public String toString() {
		return "CodeTitle [titleNo=" + titleNo + ", titleName=" + titleName
				+ "]";
	}
	
	public String[] toArray(){
		return new String[]{String.valueOf(titleNo), titleName};
	}

}
